import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
class FrameTest extends JFrame  implements KeyListener { 
	public FrameTest(){	
		this.addKeyListener(this);
		this.setSize(800,600);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
	public void	keyPressed(KeyEvent e){
		if(e.getKeyCode()==KeyEvent.VK_DOWN){
			int X = this.getX();	int Y = this.getY();
			this.setLocation(X, Y+10);
		}
	}
	public void	keyReleased(KeyEvent e){}
	public void	keyTyped(KeyEvent e){}
	
	public static void main (String[] args)  {	
		new FrameTest().setVisible(true);
	}

}